package com.yc.myspringboot.po;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName("t_test")//mybatis plus注解：对应的表名
public class DemoPo {

	@TableId(type=IdType.ASSIGN_UUID)//mybatis plus注解：表主键
	private String id;
	private Integer age;
	private String name;
	@TableField("createtime")
	private Date createTime;
	@TableField(exist=false)//mybatis plus注解：该字段在数据表中没有对应字段
	private String className;
	 
	public DemoPo() {
		super();
		// TODO Auto-generated constructor stub
	}
	public DemoPo(String id, Integer age, String name, Date createTime, String className) {
		super();
		this.id = id;
		this.age = age;
		this.name = name;
		this.createTime = createTime;
		this.className = className;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public Integer getAge() {
		return age;
	}
	public void setAge(Integer age) {
		this.age = age;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public String getClassName() {
		return className;
	}
	public void setClassName(String className) {
		this.className = className;
	}
	
	
}
